home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The X-Philes (2nd Revision)
/
The X-Philes Number 1 (1995).iso
/
xphiles
/
hp48_1
/
air.tab
< prev
next >
Wrap
Internet Message Format
|
1995-03-23
|
5KB
From comp.sys.handhelds Tue Jan 22 18:54:51 1991
Path: mentor.cc.purdue.edu!purdue!ccncsu!longs.LANCE.ColoState.EDU!jn190068
From: jn190068@longs.LANCE.ColoState.EDU (Jay Nestle)
Newsgroups: comp.sys.handhelds
Subject: Std Air Tables
Message-ID: <12221@ccncsu.ColoState.EDU>
Date: 22 Jan 91 18:08:44 GMT
Sender: news@ccncsu.ColoState.EDU
Reply-To: jn190068@longs.LANCE.ColoState.EDU (Jay Nestle)
Organization: Engineering College, Colorado State University
Lines: 40
Following is the documentation file for my program
that calculated temp, pressure, and density of air at
altitudes from 0m to 105,000m. Following this is a post of
the downloadable source for the hp48.
jn190068@longs.lance.colostate.edu
"Save the earth, develop space." - Bumper Sticker
This program by: Jay Nestle, January 1991 Colorado State University
This program uses several algorithms to calculate the temperature,
pressure, and density of air at a certain altitude. The algorithm was adapted
from Introduction to flight, third edition. The standard atmosphere calculated
is a common one used throughout the aerospace industry. The original model
was the 1959 ARDC (the U.S. Air Force's previous Air Research and Development
Command). The algorithms are outlined in the above mentioned text on pages 74
through page 77.
This should be useful to anyone who constantly uses tables to look up
temp, pressure, and density from altitudes from 0m to 105000m. The program is
not copyrighted and can be freely distributed, I hope someone can make use of
it.
The custom menu is only an example of what someone might wish to use.
Please feel free to use or not use this CST menu. Without the CST just press
run and the program will start, likewise with the CST. Without the CST the
program is less than 2K.
Units used: SI system
Temp K
Pressure Pa
Density kg/m^3
Height m
Further modifications could be made to give English units fairly
easy. The program simply checks for what altitude is desired and then uses
the correct algorithm for that altitude region, modifying the lapse rate, A
and the various other starting point constants.
From comp.sys.handhelds Tue Jan 22 18:55:01 1991
Path: mentor.cc.purdue.edu!purdue!ccncsu!longs.LANCE.ColoState.EDU!jn190068
From: jn190068@longs.LANCE.ColoState.EDU (Jay Nestle)
Newsgroups: comp.sys.handhelds
Subject: Std Air Tables PRG
Message-ID: <12222@ccncsu.ColoState.EDU>
Date: 22 Jan 91 18:14:53 GMT
Sender: news@ccncsu.ColoState.EDU
Reply-To: jn190068@longs.LANCE.ColoState.EDU (Jay Nestle)
Organization: Engineering College, Colorado State University
Lines: 155
Below is the source code for my air tables program as
described in a earlier post.
jn190068@longs.lance.colostate.edu
"Save the earth, develop space." - Bumper Sticker
%%HP: T(3)A(D)F(.);
DIR
CST {
GROB 21 8 0C70000290000013A00094110017110294E10984010603E0
GROB 21 8 400000800000803000484000080000003000044000083000
"STD" "ATM" "TABLE"
RUN }
RUN
\<<
"Prg by Jay Nestle"
DROP
"Geopotential Alt? (m)
(height above sea lvl)"
":height?:" INPUT
OBJ\-> OBJ\-> DROP 'H'
STO TST1
\>>
PVRS
\<< { P T \Gr }
PURGE
\>>
DSPR
\<< H "Ht (m)"
\->TAG T "T (K)" \->TAG
P "P (Pa)" \->TAG \Gr
"\Gr (kg/m^3)" \->TAG
PVRS
\>>
PREV1
\<< E3.14 EVAL
OBJ\-> DROP DROP 4
RND SWAP STO E3.13
EVAL OBJ\-> DROP DROP
5 RND SWAP STO
E3.12 EVAL OBJ\->
DROP DROP 4 RND
SWAP STO DSPR
\>>
PREV2
\<< E3.9 EVAL
OBJ\-> DROP DROP 4
RND SWAP STO E3.10
EVAL OBJ\-> DROP DROP
5 RND SWAP STO DSPR
\>>
OVPRG
\<<
"That's in space!"
\>>
TST7
\<<
IF H 105000 >
THEN OVPRG
ELSE 90000
'H0' STO 165.66
'T0' STO .004 'A'
STO .1105 'P0' STO
0 '\Gr0' STO PREV1
END
\>>
TST6
\<<
IF H 90000 >
THEN TST7
ELSE 79000
'H0' STO 165.66 'T'
STO 1.0669 'P0' STO
.00002244 '\Gr0' STO
PREV2
END
\>>
TST5
\<<
IF H 79000 >
THEN TST6
ELSE 53000
'H0' STO 282.66
'T0' STO -.0045 'A'
STO 61.493 'P0' STO
.00075791 '\Gr0' STO
PREV1
END
\>>
TST4
\<<
IF H 53000 >
THEN TST5
ELSE 47000
'H0' STO 282.66 'T'
STO 125.58 'P0' STO
.0015535 '\Gr0' STO
PREV2
END
\>>
TST3
\<<
IF H 47000 >
THEN TST4
ELSE 25000
'H0' STO 216.16
'T0' STO .003 'A'
STO 2527.3 'P0' STO
.040639 '\Gr0' STO
PREV1
END
\>>
TST2
\<<
IF H 25000 >
THEN TST3
ELSE 11000
'H0' STO 216.66 'T'
STO 22700 'P0' STO
.3648 '\Gr0' STO
PREV2
END
\>>
TST1
\<<
IF H 11000 >
THEN TST2
ELSE 0 'H0'
STO 288.16 'T0' STO
-.0065 'A' STO
101325 'P0' STO
1.225 '\Gr0' STO
PREV1
END
\>>
E3.9 'P=P0*EXP((
H0-H)*G/(R*T))'
E3.10 '\Gr=\Gr0*EXP((
H0-H)*G/(R*T))'
E3.12 'P=P0*(T/T0
)^-(G/(A*R))'
E3.13 '\Gr=\Gr0*(T/T0
)^-(G/(A*R)+1)'
E3.14 'T=T0+A*(H-
H0)'
\Gr0 1.225
P0 101325
G 9.8
R 287
A -.0065
T0 288.16
H0 0
H 10000
END